package mfuny.ggongal.admin;

import mfuny.ggongal.admin.gcm.GCMService;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class GCMController {
	GCMService gcm;
	
	public GCMController() throws Exception {
		gcm = new GCMService();
	}
	
	@RequestMapping("/gcm.ga")
	public ModelAndView gcm() throws Exception {
		return gcm.gcm();
	}
	
	@RequestMapping("/sendGcm.ga")
	public ModelAndView sendGcm(String content) throws Exception {
		return gcm.sendGcm(content);
	}
}
